#ifndef CURVEWIDGET_H
#define CURVEWIDGET_H

#include <QWidget>
#include <QColor>
#include <QPainter>
using namespace std;

class CurveWidget : public QWidget
{
    Q_OBJECT
public:
    explicit CurveWidget(QWidget *parent = 0);

    void setPenColor(const QColor &newColor);
    QColor penColor() const {return curColor;}
    vector< double> pwdata;

protected:
    void paintEvent(QPaintEvent *event);
    void draw(QPainter *painter);
    void drawImage(QPainter *painter);
    void mousePressEvent(QMouseEvent *event);
private:
    QColor curColor;


signals:

public slots:

};

#endif // CURVEWIDGET_H
